import axios from 'axios'

export const getRequest = (url, params) => {
  return axios({
    method: 'get',
    params: params,
    url: `${url}`
  });
}

/**
 * 
 */
export const serchArticlePageData = (currentPage, pagesize, pageSearch) => {
  return getRequest('/manage/web/findArticlePage', {
    currentPage: currentPage,
    pagesize: pagesize,
    category: pageSearch.categoryCode,
    month: pageSearch.releaseMonth,
    keyWord: pageSearch.keyWord,
    type: pageSearch.searchType
  });
}
